package bs.app.android;

public class VolumeControl {
	//getSystemService(AUDIO_SERVICE).adjustVolume(ADJUST_RAISE);
	private int vol = 0;
	private Player pl = null;
	public VolumeControl(Player p){ pl = p;
	}
	public int setLevel(int volume) {
		vol = volume;
		pl.updateVolume();
		return volume;
	}
	public int getLevel(){ return vol;
	}
    public void setMute(boolean mute){ vol = 0;
    }
    public boolean isMuted(){ return vol == 0;
    }
}
